package com.itic.appbase.framework.type;

public enum ComplaintType {
	sugest("001","内容建议"),command("002","产品建议"),software("003","软件问题"),other("004","其它问题");
	private String type;
	private String name;
	ComplaintType(String type,String name){
		type = this.type;
		name = this.name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static ComplaintType getComplaintType(String type){
		ComplaintType complaintType = null;
		switch(type){
		case"001":
			complaintType = ComplaintType.sugest;
			break;
		case"002":
			complaintType = ComplaintType.command;
			break;
		case"003":
			complaintType = ComplaintType.software;
			break;
		case"004":
			complaintType = ComplaintType.other;
			break;
		default:break;
		}
		return complaintType;
	}
}
